package org.core.blog.service;

import org.core.blog.pojo.Article;
import org.core.blog.pojo.PageQueryParam;
import org.core.blog.pojo.PageResult;
import org.core.blog.pojo.SearchParam;

import java.util.List;

public interface ArticleService {
    List<Article> getList();

    PageResult<Article> getPage(PageQueryParam pageQueryParam);

    void creatArticle(Article article);

    Article getArticle(Integer id);

    void updateArticle(Article article);

    void deleteArticle(Integer id);

    PageResult<Article> searchPage(SearchParam searchParam);
}
